home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / comm / pf270.zip / PF.DOC < prev    next >
Text File  |  1992-03-17  |  20KB  |  436 lines

  1.  
  2.  
  3.  
  4.          Product: Port Finder               mcTRONic Systems
  5.             Date: March 18, 1992            7426 Cornwall Bridge Ln.
  6.         Document: Product Information       Houston, TX  77041-1709
  7.          Version: PF.COM R2.70              (713) 462-7687
  8.                   PF.SYS R1.12              Hours: 5-10 PM M-F CST
  9.             CIS#: 74365,1716 or 72241,322
  10.  
  11.  
  12.            Port   Finder  is a COM and LPT port  utility  program.    Its
  13.         primary  purpose is to activate COM3 or 4 on computers  that have
  14.         the   hardware and also use PC or MS DOS  3.3,  4.0   or  higher.
  15.         In   addition to COM port activation,  Port  Finder  allows   all
  16.         possible  COM to COM and LPT to LPT  port  swaps.  Port  swapping
  17.         allows  use of COM3 and 4 in programs that only permit  entry  of
  18.         COM1  or  2.  In addition, both COM  and  LPT  port  swapping  is
  19.         useful for programs that are  preconfigured to  use a port  other
  20.         than the one you wish to use.  You  may find that it is easier to
  21.         swap  ports  instead of  reconfiguring your program  or  swapping
  22.         cables.
  23.  
  24.            Port   Finder   comes in two forms.  The   first   is   PF.COM
  25.         which  performs  all the aforementioned  functions.   PF.COM   is
  26.         usually  added to your AUTOEXEC.BAT file and run  each  time  you
  27.         startup your computer.  PF.COM can also be run  at  any time from
  28.         the DOS prompt or used in batch files.  The second form is PF.SYS
  29.         which  is a device driver and must be run from  your   CONFIG.SYS
  30.         file  on  startup only.  PF.SYS  allows  only COM  to   COM  port
  31.         swaps  and is intended for use  with  other device  drivers  that
  32.         might use COM3 or 4 directly  or  indirectly after a port swap.
  33.  
  34.            In   addition  to activating ports and  port  swapping,   both
  35.         PF.COM and PF.SYS will display actual COM port addresses  in HEX.
  36.         Also  PF.COM  will display the LPT port addresses  in  HEX,  your
  37.         computer  type,  BIOS date, DOS version, display   adapter  type,
  38.         total   base and extended memory, XMS memory total with XMS  ver-
  39.         sion,   and  total  expanded memory  with  EMS version.   All  of
  40.         this information can  be very helpful when setting up a  computer
  41.         or troubleshooting a port or other problems.
  42.  
  43.            For   your  information, any program that  bypasses  DOS   and
  44.         directly  addresses the COM or LPT ports will not be affected  in
  45.         any  way  by  Port Finder.  Many modem programs  bypass   DOS  in
  46.         order   to achieve higher port speeds or the  ability  to  multi-
  47.         task  both COM and LPT ports for simultaneous use.  This  (bypass
  48.         DOS) is not a problem with such a program as PROCOMM Plus  as  it
  49.         works  with both COM3 and 4.   There  are  other programs   which
  50.         do  not permit entry of COM3 and 4,  who  directly  address   the
  51.         hardware,  and will not work  with  Port Finder.  At  least  with
  52.         Port Finder, your computer will  know that  COM3 or 4 is  present
  53.         as there will be many  more  pro- grams  that will work  properly
  54.         with COM3 or 4 after  running Port Finder.
  55.  
  56.            Port  Finder has gained some fame after being  recommended  in
  57.         four  different magazine articles.  The first was  in  the  Advi-
  58.         sor   column  of PC Magazine on October  17,  1989.   The  second
  59.  
  60.  
  61.                                         1
  62.  
  63.  
  64.  
  65.  
  66.         in the July 1990 issue of Vulcan's Computer  Monthly.  The  third
  67.         mention  came on  January 1991  in PC Computing.  The last was in
  68.         the  February 1992  issue of  PC Sources.   Many thanks  to these
  69.         publications for their support of Port Finder.
  70.  
  71.         USAGE:
  72.  
  73.            Neither  PF.COM nor PF.SYS require any runtime  parameters  to
  74.         display   COM  port addresses or to activate  COM3  or  4  ports.
  75.         PF.COM  will also automatically  display  LPT  port addresses  as
  76.         well as other system information.  DOS 3.3  or 4.0  only  support
  77.         access to a maximum of 4 COM  and  3  LPT ports (though your BIOS
  78.         does allocate a location for LPT4).
  79.  
  80.  
  81.         The PF.COM runtime parameters in an AUTOEXEC.BAT file are:
  82.  
  83.         Syntax: [d:\path\]pf [parm1] [parm2]
  84.  
  85.         Do  not include the brackets "[" or "]" which  indicate  op-
  86.         tional information.  d:\path\ = optional drive and path.
  87.  
  88.         [parm1] and/or [parm2] = optional parameters
  89.  
  90.         H   = Display help screen        C23 = Swap COM ports 2 & 3
  91.         RC  = Reset COM port addressing  C24 = Swap COM ports 2 & 4
  92.         RL  = Reset LPT port addressing  C34 = Swap COM ports 3 & 4
  93.         C12 = Swap COM ports 1 & 2       L12 = Swap LPT ports 1 & 2
  94.         C13 = Swap COM ports 1 & 3       L13 = Swap LPT ports 1 & 3
  95.         C14 = Swap COM ports 1 & 4       L23 = Swap LPT ports 2 & 3
  96.  
  97.         The PF.SYS runtime parameters in a CONFIG.SYS file are:
  98.  
  99.         Syntax: device=[d:\path\]pf.sys [parm1] [parm2]
  100.  
  101.         Do  not include the brackets "[" or "]" which  indicate  op-
  102.         tional information.  d:\path\ = optional drive and path.
  103.  
  104.         [parm1] and/or [parm2] = optional parameters
  105.  
  106.         C12 = Swap COM ports 1 & 2       C23 = Swap COM ports 2 & 3
  107.         C13 = Swap COM ports 1 & 3       C24 = Swap COM ports 2 & 4
  108.         C14 = Swap COM ports 1 & 4       C34 = Swap COM ports 3 & 4
  109.  
  110.         NOTES:
  111.  
  112.            All  parameters can be in upper or lower case.   The  COM  and
  113.         LPT port addresses displayed always indicate the  final  location
  114.         after   all port activations, port  swaps  or  port  resets  have
  115.         been  executed.   Enter all port numbers with  low  first,   then
  116.         high.  If you become confused as to which  port address   belongs
  117.         where,  just use the RC or RL  commands  to restore the ports  to
  118.         their correct locations.
  119.  
  120.  
  121.  
  122.  
  123.                                         2
  124.  
  125.  
  126.  
  127.  
  128.            Port Finder performs a checksum when it loads.  If it  is  not
  129.         correct, the program will terminate with an error  message.    If
  130.         this happens to you stop using the  version  you have. Request  a
  131.         new  copy  of  the program if you purchased   it  from   mcTRONic
  132.         Systems or download a new copy from the  RBBS you got it from.  I
  133.         would like to hear about any such  problems.
  134.  
  135.            In  addition  to the other features mentioned,  when  you load
  136.         either PF.COM or PF.SYS, Port Finder will determine  if you  have
  137.         a  joystick  port and add that information   to   your  equipment
  138.         list.   When  IBM first came out with the PC and its  BIOS,   the
  139.         BIOS  would  do this for you.  When IBM  came  out with   the  AT
  140.         BIOS  they  left out this feature.  Whether   your  joystick   is
  141.         added to your equipment list or not  does  not seem  to  make any
  142.         difference in your ability  to  use  that port.  The only problem
  143.         is  that  there are many programs that list   your  equipment  as
  144.         found  by your BIOS and if  the  joy- stick presence is  not  in-
  145.         cluded,  these programs will say  you do  not  have  a  joystick,
  146.         even when you do.   I  don't  know about  you,  but if a  program
  147.         does indicate a  joystick  is present or not, I would like it  to
  148.         say YES if I do have one.
  149.  
  150.  
  151.         TECHNICAL DATA:
  152.  
  153.  
  154.            Your   computer   BIOS assigns logical COM   and   LPT   ports
  155.         numbers,   from  low too high, to all responding  I/O  ports   in
  156.         order   as   they are found, and non-responding  I/O   port   ad-
  157.         dresses  are skipped.  Thus if you had but one COM port,  and  it
  158.         was the address for COM2, your computer BIOS would assign it   to
  159.         COM1  because  no real COM1 address was present.    Port  Finder,
  160.         which is used as an extension of your computer BIOS, also   acti-
  161.         vates   COM3 and 4 ports in the  same  manner.   In fact, if  you
  162.         only  had  a COM3 or 4 port in your system,   Port  Finder  would
  163.         assign  these  ports to COM1 and 2.  In  addition,  Port   Finder
  164.         will activate up to 4 COM port  addresses,  if your  system   had
  165.         four  ports  and two of them  were  not  the normal  COM1  and  2
  166.         addresses.
  167.  
  168.          COM PORT ADDRESSES:
  169.  
  170.          MACHINE     COMx       I/O      INT      MEM   ACT PORT
  171.  
  172.          ALL         COM1     3F8  HEX   IRQ4    40:00     NO
  173.          ALL         COM2     2F8  HEX   IRQ3    40:02     NO
  174.  
  175.          PC/XT/AT    COM3     3E8  HEX   IRQ4    40:04     YES
  176.          PC/XT/AT    COM4     2E8  HEX   IRQ3    40:06     YES
  177.          PC/XT/AT    COM3     3E0  HEX   IRQ4    40:04     YES
  178.          PC/XT/AT    COM4     2E0  HEX   IRQ3    40:06     YES
  179.          PC/XT/AT    COM3     338  HEX   IRQ4    40:04     YES
  180.          PC/XT/AT    COM4     238  HEX   IRQ3    40:06     YES
  181.  
  182.  
  183.  
  184.  
  185.                                         3
  186.  
  187.  
  188.  
  189.  
  190.          COM PORT ADDRESSES: (cont.)
  191.  
  192.          MACHINE     COMx       I/O      INT      MEM   ACT PORT
  193.  
  194.          PS/2        COM3     3220 HEX   IRQ3    40:04     YES
  195.          PS/2        COM4     3228 HEX   IRQ3    40:06     YES
  196.          PS/2        COM5     4220 HEX   IRQ3    NONE      NO
  197.          PS/2        COM6     4228 HEX   IRQ3    NONE      NO
  198.          PS/2        COM7     5220 HEX   IRQ3    NONE      NO
  199.          PS/2        COM8     5228 HEX   IRQ3    NONE      NO
  200.  
  201.          SERIAL PORT COUNT IS AT MEM LOCATION 40:11 BITS 2, 3 & 4
  202.  
  203.          LPT PORT ADDRESSES:
  204.  
  205.          LPTx   MEM     I/O    COMMENT
  206.  
  207.          LPT1  40:08  3BC HEX  MAY BE INCLUDED ON MDA OR OTHER CARD
  208.          LPT2  40:0A  378 HEX  MAY BE ADDRESSED AS LPT1 ON PC/XT/AT
  209.          LPT3  40:0C  278 HEX  MAY BE ADDRESSED AS LPT2 ON PC/XT/AT
  210.  
  211.  
  212.          BATCH FILE ERRORLEVEL:
  213.  
  214.            The  Port  Finder program PF.COM can be used in  a  batch file
  215.         to   determine  the COM ports that  are  present.    Port  Finder
  216.         exits  with an errorlevel number which corresponds  to the  ports
  217.         active in your system.  All possible  combinations are covered.
  218.  
  219.          ERRORLEVEL 0 - NO COM PORTS  ERRORLEVEL 8  - COM4
  220.          ERRORLEVEL 1 - COM1          ERRORLEVEL 9  - COM1,4
  221.          ERRORLEVEL 2 - COM2          ERRORLEVEL 10 - COM2,4
  222.          ERRORLEVEL 3 - COM1,2        ERRORLEVEL 11 - COM1,2,4
  223.          ERRORLEVEL 4 - COM3          ERRORLEVEL 12 - COM3,4
  224.          ERRORLEVEL 5 - COM1,3        ERRORLEVEL 13 - COM1,3,4
  225.          ERRORLEVEL 6 - COM2,3        ERRORLEVEL 14 - COM2,3,4
  226.          ERRORLEVEL 7 - COM1,2,3      ERRORLEVEL 15 - COM1,2,3,4
  227.  
  228.          COMMTEST.BAT IS AN EXAMPLE COM PORT ERRORLEVEL BATCH FILE
  229.  
  230.  
  231.         INSTALLATION:
  232.  
  233.            Installation  of Port Finder on your Hard Disk is  easy  using
  234.         supplied  INSTALL program.   If you are  unfamiliar   with  ASCII
  235.         files and how to edit or create them, you should  purchase a book
  236.         about  DOS commands and file formats.  The  file PF.COM  is  nor-
  237.         mally  added to your AUTOEXEC.BAT file  towards  the   beginning,
  238.         but  at least before any file  that  requires COM3  or  4.    The
  239.         file  PF.SYS  should  be  added  to  your CONFIG.SYS file  before
  240.         any other device driver that may need COM3 or 4.  You do not need
  241.         to  load  both PF.SYS and  PF.COM.  If you do  not  have  another
  242.         device  driver that could use COM3 or  4 then use PF.COM in  your
  243.         AUTOEXEC.BAT file.  If you  do have a device driver that can  use
  244.         COM3 or 4, load PF.SYS  in your CONFIG.SYS file.
  245.  
  246.  
  247.                                         4
  248.  
  249.  
  250.  
  251.  
  252.  
  253.            As   an   example  of how to install Port   Finder,   let   us
  254.         assume  the  following.  You do not need to use  PF.SYS  in  your
  255.         CONFIG.SYS   file.   You are not sure how to  modify   your   AU-
  256.         TOEXEC.BAT   file  that does exist on your C:  hard  drive   root
  257.         directory.    You   have the Port Finder disk   and   its   files
  258.         located  in the A: drive.  You would use the following  steps  to
  259.         install Port Finder in your AUTOEXEC.BAT file.
  260.  
  261.          A:
  262.          copy pf.com c:\
  263.          c:
  264.          cd\
  265.          copy con+autoexec.bat autoexec.new
  266.          pf
  267.          (press F6)^Z
  268.          rename autoexec.bat autoexec.old
  269.          rename autoexec.new autoexec.bat
  270.  
  271.            You   are   done!   Restart your  computer   and   sit   back.
  272.         Normally Port Finder might be the second or third command in your
  273.         AUTOEXEC.BAT  file, after such commands as  @echo   off,  however
  274.         the above procedure will work if you  know  nothing about editing
  275.         your AUTOEXEC.BAT file.
  276.  
  277.  
  278.         ORDERING INFORMATION:
  279.  
  280.            Port  Finder  cost just $10.95 plus  shipping.   Shipping   is
  281.         $3.00   inside  the  U.S. and $8.00  outside the   U.S.  in  U.S.
  282.         funds only.  If you order Port Finder from outside the  U.S.  you
  283.         must  send a money order or add another  $5  for  money transfer.
  284.         Port   Finder  comes on 3.5 or  5.25  inch  disk, please  specify
  285.         size with order.
  286.  
  287.  
  288.         CONSIDERATIONS ON COM PORT SWAPPING:
  289.  
  290.  
  291.            Port  Finder  allows all possible COM to  COM  port  swapping,
  292.         however   not  all possible COM port swaps will  work   on   your
  293.         system.  Without regard to the following rules, any COM port swap
  294.         combination  may  work in your situation.  I have  included   all
  295.         possible  swap  combinations just in case your  system  does  not
  296.         work like the norm.
  297.  
  298.            First  of all, even though Port Finder will place  up  to four
  299.         COM ports to your disposal, the IBM PC/XT/AT  structure was  only
  300.         designed  to  have two COM ports work at  the  same  time.    The
  301.         main restriction is caused by only  having  two hardware   inter-
  302.         rupts   available  to  all  four  COM   ports.  Through  the  use
  303.         of special software and/or hardware  it  is possible  to  run  up
  304.         to four or more  COM  ports.   Normally however this will not  be
  305.         the case.
  306.  
  307.  
  308.  
  309.                                         5
  310.  
  311.  
  312.  
  313.  
  314.            If   you  talk to other experts on COM ports you  may  get   a
  315.         different  opinion  of what is proper in port  swapping  and what
  316.         is not.  My view on the subject is as follows:
  317.  
  318.  
  319.         1.   Swap  only ports that share the same  interrupt.   A   mouse
  320.         driver  set for  COM1 (IRQ4) will have problems if the  mouse  is
  321.         on  COM4  (IRQ3) which was swapped with COM1 (PF C14).    If  the
  322.         mouse  was  on  COM3 (IRQ4) and swapped with COM1  (PF   C13)  it
  323.         should  work  fine.  Therefore swap COM1 with COM3 (PF  C13)  and
  324.         COM2   with  COM4 (PF C24).  This appears to   go   against  what
  325.         Lori Grunin stated in the PC Magazine article.   Swap- ping  COM1
  326.         with COM2 (PF C12) or COM3 with COM4 (PF C34)  may still work  on
  327.         your  system.   It  depends both on the  software  used  and  the
  328.         actual interrupts your COM ports use.
  329.  
  330.  
  331.         2.   If  you are going to use two COM ports at  one   time   they
  332.         should  be on opposite interrupts.  If you are going to  use  two
  333.         ports  at  once the    possibilities are COM1 (IRQ4)   with  COM2
  334.         (IRQ3)  (same as COM2 with COM1), COM1 (IRQ4) with  COM4  (IRQ3),
  335.         COM2 (IRQ3) with COM3 (IRQ4) and COM3  (IRQ4)  with COM4  (IRQ3).
  336.         Divide your COM port inputs into two groups of two.  Pare  serial
  337.         devices  that  you will not use at the  same time  on   the  same
  338.         interrupt (IRQ4 with IRQ4 and  IRQ3  with IRQ3).
  339.  
  340.  
  341.         MICROSOFT WINDOWS CONSIDERATIONS:
  342.  
  343.  
  344.            If   you   load either PF.SYS in your   CONFIG.SYS   file   or
  345.         PF.COM  in  your AUTOEXEC.BAT before you run  Windows  your   COM
  346.         ports will be activated and Windows will use them.  You must  add
  347.         in your SYSTEM.INI file under [386Enh] the following:
  348.  
  349.         [386Enh]
  350.         Com3Base=3e8h (or your address PF lists for COM3)
  351.         Com4Base=2e8h (or your address PF lists for COM4)
  352.         Com3AutoAssign=2
  353.         Com4AutoAssign=2
  354.         ComIrqShare=1
  355.  
  356.            If you run Port Finder while in Windows,  any ports swaps made
  357.         will be temporary.  You can use PF in a batch file before you run
  358.         another DOS application to use port swapping.  You can make  port
  359.         swaps  before you run Windows.  The Com?Base= should  match  your
  360.         new COM port assignment.
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.                                         6
  372.  
  373.  
  374.  
  375.                             Port Finder 2.70 Addendum
  376.  
  377.         Date: 10-19-91
  378.  
  379.         This is  Port Finder 2.70 addendum.  Version 2.61 of  Port Finder
  380.         is still included should you  run into problems using 2.70.  This
  381.         version of  Port Finder  does a positive ID of the  UART based on
  382.         the following  four types.  All  UARTS used in PC application COM
  383.         ports will  be one of  these numbers or  a clone of  one of these
  384.         numbers.  Port Finder  has no way to know if your chip is a clone
  385.         or the  real thing.   Clone chips work just  fine but may printed
  386.         using a number  other than the  four listed here.   If you have a
  387.         problem  using  Port Finder  2.70  just  use  the file  PF261.COM
  388.         instead.
  389.  
  390.         There are four possible UART types:
  391.  
  392.  
  393.         8250   - This is the original IBM PC and XT UART.   Most software
  394.                  will work with this original  type and do not try to use
  395.                  the newer features in the other chips.
  396.  
  397.  
  398.         16450  - This is the  UART version used on the  IBM AT system and
  399.                  is what you  will find on almost all 286/386/486 systems
  400.                  and is called  the AT serial port.  It  supported higher
  401.                  port speeds than the  8250 though it appears almost like
  402.                  a 8250 to your software.
  403.  
  404.  
  405.         16550  - This was  first used  on the  IBM  PS/2  computers.  The
  406.                  16550  was  the first  chip to  include a  16 byte  FIFO
  407.                  (First In First Out)  buffer.  However,  the FIFO buffer
  408.                  in this  chip is defective  and can not  be used.  Since
  409.                  the FIFO buffer is defective in this chip, it should not
  410.                  be turned on or attempted to be used.  Loss of data will
  411.                  occur.
  412.  
  413.  
  414.         16550A - This chip was issued as  a replacement for the 16550 and
  415.                  includes a  FIFO buffer  that works.  Through the use of
  416.                  the FIFO buffer,  very high baud rates  can be supported
  417.                  without losing characters.   Some software will not work
  418.                  right if the  FIFO buffer  is turned on and the software
  419.                  expects only a 8250 or 16450 to be present.  Windows has
  420.                  been known to  leave the buffer  on sometimes upon exit.
  421.                  Thus, when Port Finder is run, it will turn off the FIFO
  422.                  buffer of any 16550A or 16550 found.  Software that does
  423.                  support the  16550A FIFO buffer  will turn it back on if
  424.                  detected.  This is true for Windows and ProComm Plus.
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.                                         7
  434.  
  435.  
  436.